import request from '@/utils/request'

// 查询工位列表
export function listSet_station(query) {
  return request({
    url: '/set/station/list',
    method: 'get',
    params: query
  })
}
export function listAllSet_station(query) {
  return request({
    url: '/set/station/interface',
    method: 'get',
    params: query
  })
}

// 查询工位详细
export function getSet_station(id) {
  return request({
    url: '/set/station/' + id,
    method: 'get'
  })
}

// 新增工位
export function addSet_station(data) {
  return request({
    url: '/set/station',
    method: 'post',
    data: data
  })
}

// 修改工位
export function updateSet_station(data) {
  return request({
    url: '/set/station',
    method: 'put',
    data: data
  })
}

// 删除工位
export function delSet_station(id) {
  return request({
    url: '/set/station/' + id,
    method: 'delete'
  })
}

// 导出工位
export function exportSet_station(query) {
  return request({
    url:'/set/station/export',
    method: 'get',
    params: query
  })
}
// 下载模板
export function importTemplate() {
  return request({
    url: '/set/station/importTemplate',
    method: 'get',
  })
}
